<?php

namespace app\activity\model;

use app\BaseModel;
use think\facade\Db;

/**
 * @mixin think\Model
 */
class ActivityItemsInActivity extends BaseModel
{
    protected $name = 'lb_activity_activity_item';
    protected $pk = 'id';

    public function destoryByactivityId($activity_id)
    {
        self::where(['activity_id' => $activity_id])->delete();
    }


    public function getListByFilter($filter)
    {
        $filter['status'] = 1;
        return $this
            ->where($filter)->select()->toArray();
    }



}
